
public class Swap {

	public static void swap(int a, int b) {
		System.out.println(a + " " + b);
		int tmp = a;
		a = b;
		b = tmp;
		System.out.println(a + " " + b);
	}
	
	public static void swap(Integer a, Integer b) {
		System.out.println(a + " " + b);
		Integer tmp = a;
		a = b;
		b = tmp;
		System.out.println(a + " " + b);
	}
	
	public static void plus(int sept, int offset) {
		sept = sept + offset;
	}
	
	public static void main(String[] args) {
//		int aa = 1;
//		int bb = 2;
//		
//		System.out.println(aa + " " + bb);
//		swap(aa, bb);
//		System.out.println(aa + " " + bb);
		
		Integer aI = new Integer(1);
		Integer bI = new Integer(2);
		
		System.out.println(aI + " " + bI);
		swap(aI, bI);
		System.out.println(aI + " " + bI);
		
		int sept = 7;
		System.out.println(sept);
		plus(sept, 3);
		System.out.println(sept);
		
	}
}
